package com.mmall.common;

import com.mmall.Exception.PermissionException;
import lombok.Getter;
import lombok.Setter;

/**
 * 异常抛出
 */
@Setter
@Getter
public class ExceptionError {

    private ExceptionError(){
        throwError("ExceptionError不能被实例化");
    }

    public static void throwError(Object error){
        throw new PermissionException(error);
    }
}
